/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.List;

/**
 *
 * @author Ira
 */
public class CD extends Document {
	
	private int lenght;
	private String type;
	
	public CD(String title, short year, String type, List<String> authors, String editor, int lenght) {
		super("CD", year, title, authors, editor);
		this.lenght = lenght;
		this.type = type;
	}

	/**
	 * @return the lenght
	 */
	public int getLenght() {
		return lenght;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @param lenght the lenght to set
	 */
	public void setLenght(int lenght) {
		this.lenght = lenght;
	}
}
